From 4b8e1ac379c95ee967094762cf16d36f0cb380cd Mon Sep 17 00:00:00 2001 From: matmutant Date: Mon, 8 Jul 2019 12:01:00 +0200 Subject: and patient_name support --- glucometerutils/drivers/fsprecisionneo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py index 15be65c..7faf301 100644 --- a/glucometerutils/drivers/fsprecisionneo.py +++ b/glucometerutils/drivers/fsprecisionneo.py @@ -9,7 +9,8 @@ untested. Supported features: - get readings; - get and set date and time; - - get serial number and software version. + - get serial number and software version; + - get and set patient name. Expected device path: /dev/hidraw9 or similar HID device. Optional when using HIDAPI. @@ -59,7 +60,8 @@ class Device(freestyle.FreeStyleHidDevice): serial_number=self.get_serial_number(), version_info=( 'Software version: ' + self._get_version(),), - native_unit=self.get_glucose_unit()) + native_unit=self.get_glucose_unit(), + patient_name=self.get_patient_name()) def get_glucose_unit(self): # pylint: disable=no-self-use """Returns the glucose unit of the device.""" -- cgit v1.2.3